<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" session="false" %>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- 
  - Author(s): Robert
  - Date: 2018-04-09 14:08:48
  - Description:
-->
<head>
<title>bug详情</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="<%= request.getContextPath() %>/common/nui/nui.js" type="text/javascript"></script>
    
</head>
<body>

	


	<table style="width:100%;height:15%;table-layout:fixed;" class="nui-form-table" border="1" cellspacing="0">
                <tr>
                    <td class="form_label" >
                        任务标题:
                    </td>
                    <td colspan="1" id="id_bug_title">
                       
                    </td>
                    <td class="form_label">
                        任务状态:
                    </td>
                    <td colspan="1" id="id_bug_status">
                       
                    </td>
                </tr>
                <tr>
                    <!-- <td class="form_label">
                        任务类型:
                    </td>
                    <td colspan="1" id="id_bug_type">
                       
                    </td> -->
                    <td class="form_label">
                        紧急程度:
                    </td>
                    <td colspan="1" id="id_bug_urgent">
                      
                    </td>
                </tr>
                <tr>
                    <td class="form_label">
                        接收人:
                    </td>
                    <td colspan="1" id="id_bug_receiver">
                       
                    </td>
                     <td class="form_label">
                        发布人:
                    </td>
                    <td colspan="1" id="id_bug_sendder">
                       
                    </td>
               </tr>
                <tr>
                    <td class="form_label">
                        更新时间:
                    </td>
                    <td colspan="1" id="id_bug_utime">
                        
                    </td>
                    <td class="form_label">
                        创建时间:
                    </td>
                    <td colspan="1" id="id_bug_ctime">
                        
                    </td>
                </tr>
                 <tr>
					
                   
                    <td class="form_label">
                      所属项目:
                    </td>
                    <td colspan="3" id="projectName">
                       
                    </td>
                </tr>
                <tr>
					
                   
                    <td class="form_label">
                       bug
                       描述:
                    </td>
                    <td colspan="3" id="id_bug_content">
                       
                    </td>
                </tr>
            </table>
	<script type="text/javascript">
    	nui.parse();
    	

		var bugId = "<%= request.getParameter("bugId") %>";
    	
    	//var bugId = 235;
        
        var json = "{'zhmybug':{'bugId':"+bugId+"}}";
               
        $.ajax({
            url:" com.zhmy.xmgl.bug.zhmybugbiz.getZhmyBug.biz.ext",
           
            type:'POST',
            data:json,
            cache:false,
            contentType:'text/json',
            success:function(text){
                var returnJson = nui.decode(text);
                if(returnJson.exception == null){
                
                	
                	
                	document.getElementById("id_bug_title").innerHTML=returnJson.zhmybug.bugTitle;
                	document.getElementById("id_bug_sendder").innerHTML=returnJson.zhmybug.bugFounder;
                	document.getElementById("id_bug_receiver").innerHTML=returnJson.zhmybug.bugSendee;
                	document.getElementById("id_bug_ctime").innerHTML=returnJson.zhmybug.bugCtime;
                	document.getElementById("id_bug_utime").innerHTML=returnJson.zhmybug.bugUtime;
                	
                	/* var bug_type =nui.getDictText('bug_TYPE', returnJson.zhmybug.bugType);
                	document.getElementById("id_bug_type").innerHTML=bug_type;
 */                	
                	var bug_urgent = nui.getDictText('URGENT_DEGREE', returnJson.zhmybug.bugLevel);
                	document.getElementById("id_bug_urgent").innerHTML=bug_urgent;
                	
                	var bug_status = nui.getDictText('TASK_STATUS', returnJson.zhmybug.bugStatus);
                	document.getElementById("id_bug_status").innerHTML=bug_status;
                	
                	document.getElementById("id_bug_content").innerHTML=returnJson.zhmybug.bugContent;
  					document.getElementById("projectName").innerHTML=returnJson.zhmybug.zhmyProject.projectName;
                	 //nui.alert("新增任务成功","提示");
                   // CloseWindow("saveSuccess");
                }else{
                    nui.alert("没有找到此bug", "系统提示", function(action){
                        if(action == "ok" || action == "close"){
                           // CloseWindow("saveFailed");
                        }
                    });
                }
            }
   		 });
                
                
  
    	           //关闭窗口
        function CloseWindow() {

            if (window.CloseOwnerWindow)
            	return window.CloseOwnerWindow("haha");
            else 
            	window.close();
        }  
    	
    	
			
    </script>
</body>
</html>